Skip to content

Conversation

@GuyPaddock
Copy link
Owner

Summary

  • replace localhost websocket hosts from backend URLs with the current client hostname while preserving the port
  • ensure websocket connections use reachable hosts when accessing the UI remotely

Testing

  • not run (not requested)

Codex Task

hieptl and others added 30 commits November 24, 2025 20:44
… builder (OpenHands#11816)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Co-authored-by: enyst <engel.nyst@gmail.com>
Co-authored-by: openhands <openhands@all-hands.dev>
…ontent update (OpenHands#11808)

Co-authored-by: amanape <83104063+amanape@users.noreply.github.com>
Co-authored-by: openhands <openhands@all-hands.dev>
hieptl and others added 26 commits December 17, 2025 22:29
Co-authored-by: Tim O'Farrell <tofarr@gmail.com>
Co-authored-by: John-Mason P. Shackelford <jpshack@gmail.com>
Co-authored-by: openhands <openhands@all-hands.dev>
…lts (OpenHands#12015)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Tim O'Farrell <tofarr@gmail.com>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
…nds#10927)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
…penHands#12082)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
… endpoint (OpenHands#12105)

Co-authored-by: openhands <openhands@all-hands.dev>
)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Rohit Malhotra <rohitvinodmalhotra@gmail.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +16 to +20
if (
["localhost", "127.0.0.1"].includes(url.hostname) &&
window.location.hostname !== url.hostname
) {
return `${window.location.hostname}${url.port ? `:${url.port}` : ""}`;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Localhost swap uses undefined hostname when location is stubbed

The new localhost-handling branch now reads window.location.hostname, but our vitest stubs replace location with {protocol, host} (see frontend/__tests__/build-websocket-url.test.ts), leaving hostname undefined. When conversationUrl is a localhost URL in those tests, this code returns ${window.location.hostname}:${url.port}, yielding undefined:8080 and breaking the WebSocket URL assertions, so the frontend test suite will fail after this change unless the code falls back to location.host or the stubs are updated.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.